﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using BLL.BusinessRules;

namespace BLL
{
    public class HOADONCHITIET:BusinessObject
    {
        public int MaHoaDonChiTiet { get; set; }
        public Guid MaHoaDon { get; set; }
        public string MaHangHoa { get; set; }
        public int? MaDonViTinh { get; set; }
        public decimal? SoLuong { get; set; }
        public decimal? DonGia_VND { get; set; }
        public decimal? DonGia_NgoaiTe { get; set; }
        public int? MaLoaiTienTe { get; set; }
        public decimal? Thue { get; set; }
        public decimal? ThanhTien { get; set; }
        public DateTime? TuNgay { get; set; }
        public DateTime? DenNgay { get; set; }
        public int? CreateBy { get; set; }
        public int? ModifiedBy { get; set; }
        public DateTime? ModifiedOn { get; set; }


        public HOADONCHITIET()
        {
            AddRule(new ValidateRequired("MaHangHoa"));
        }

        public HOADONCHITIET(int maHoaDonChiTiet, Guid maHoaDon, string maHangHoa, int? maDonViTinh, decimal? soLuong, decimal? donGia_VND, decimal? donGia_NgoaiTe, int? maLoaiTienTe,
                decimal? thue, decimal? thanhTien, DateTime? tuNgay, DateTime? denNgay, int? createBy, int? modifiedBy, DateTime? modifiedOn)
            : this()
        {
            MaHoaDonChiTiet = maHoaDonChiTiet;
            MaHoaDon = maHoaDon;
            MaHangHoa = maHangHoa;
            MaDonViTinh = maDonViTinh;
            SoLuong = soLuong;
            DonGia_VND = donGia_VND;
            DonGia_NgoaiTe = donGia_NgoaiTe;
            MaLoaiTienTe = maLoaiTienTe;
            Thue = thue;
            ThanhTien = thanhTien;
            TuNgay = tuNgay;
            DenNgay = denNgay;
            CreateBy = createBy;
            ModifiedBy = modifiedBy;
            ModifiedOn = modifiedOn;            
            CreateBy = createBy;
            ModifiedBy = modifiedBy;
            ModifiedOn = modifiedOn;
        }
    }
}
